Introduction

WordPress is one of the most famous content management systems (CMS). According to the latest statistical data nearly 22.5% of all existing sites around the world run on WP. This system is often chosen as it is:

  • Easy to install, run and modify.
  • Free.
  • Rich in free templates, themes, and plugins.
  • SEO friendly.
  • Simple to control and manage.
  • Secure in use.

Using a CDN with WordPress will significantly improve loading speed. Below, we're going to give you detailed instructions how to integrate CDN with WP.

Before you start

  1. Since we will use the Cname address next, please ensure that you have configured the CDN resources on the console .
  2. If you want to integrate a CDN service on https:// pages, you must ensure that SSL is enabled on the console.
  3. If your website has embedded custom fonts, please confirm that you have enabled the CORS headers in the LightCDN console.

Integration approach

Enable CDN in WORDPRESS using W3 TOTAL CACHE PLUGIN

Installation Of CDN Plugin

  1. Login to the Wordpress Admin Panel.

  2. Navigate to Plugin page then click on Add New.

  3. Insert W3 Total Cache into the search field.

    1667198348134

  4. Install W3 Total Cache and activate it.

    1667200727469

Migrate Contents to CDN

  1. Open the Settings page of the CDN plugin from the Plugin page.

  2. Under General Settings page, scroll down to CDN Delivery Network, tick to enable and choose CDN Type as Generic Mirror.(Don't tick Enable and select Generic Mirror from the CDN type select box as in the picture below.)Save changes.

    1667200457766

  3. Select Content Delivery Network (CDN) Setting from the Performance menu of Viewing.

  4. Insert the CDN URL into Replace site's hostname with CNAME(You can copy in the "CDN Resources" list of LightCDN console.).Save changes.

    1667199402719

  5. Return to the "General Settings" page and check "CDN ->enabled".Save changes.

  6. Activate the changes on General Settings Page.

Enable CDN in WORDPRESS using WP SUPER CACHE PLUGIN

Installation Of CDN Plugin

  1. Login to the Wordpress Admin Panel.

  2. Navigate to Plugin page then click on Add New.

  3. Insert WP Super Cache into the search field.

    1667200634276

  4. Install W3 Total Cache and activate it.

    1667200699142

Migrate Contents to CDN

  1. Open the Settings page of the CDN plugin from the Plugin page.

  2. Under the Easy tab, tick Caching On(Recommended) in the Caching setting.Update status.

    1667201177828

  3. Switch to the CDN tab, tick the Enable CDN Support check box and to the Off-site URL input field fill in your CDN domain as in the picture below.

    1667201770909

  4. If you don’t have SSL enabled for the CDN service tick the check box Skip https URLs to avoid "mixed content" errors. Save changes.

  5. Activate the changes on General Settings Page.

Verification

Verify if your Wordpress blog is on CDN by viewing the HTML source code. Image links should be replaced with CDN URLs.

LightCDN all right reserved,powered by GitbookUpdated Time: 2023-10-08 11:29:56

results matching ""

    No results matching ""